{extend name="public/common"} {block name="body"}
 <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    系统管理
    <span class="c-gray en">&gt;</span>
   
    后台权限
    <span class="c-gray en">&gt;</span>

    操作日志
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>
  
  <div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
   <h1  style="line-height:50px;float:left;font-size:18px;margin:0 10px;padding:0;padding-left:20px;">操作日志列表</h1>
    <div class="page-container dataTables_wrapper" style="padding-top:0;">
      <div id="tab-system" class="HuiTab">
          <div class="mt-20" style="margin: 50px 0 10px;">
              <input type="text" name="us_sql" placeholder="账号" style="width:250px" class="input-text" value="{$search}">
              <button class="btn btn-success" type="submit" onclick="search()"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
          </div>
          <div class="mt-20">
            <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
              <thead>
                <tr class="text-c">
                  <th>ID</th>
                  <th>操作类型</th>
                  <th>日志说明</th>
                  <th>操作时间</th>
                  <th>操作IP</th>
                  <th>操作账号</th>
                  <th>客户端</th>
                </tr>
                 {volist name="q" id="v"}
              </thead>
              <tbody>
                <tr class="text-c">
                  <td>{$v.id}</td>
                  <td>
                      {if condition="$v.rz_class eq 1"}管理操作{elseif condition="$v.rz_class eq 2"}会员操作{/if}
                  </td>
                  <td>{$v.rz_test}</td>
                  <td>{$v.rz_time|date="Y-m-d H:i:s",###}</td>
                  <td>{$v.rz_ip}</td>
                  <td>{$v.rz_user}</td>
                  <td>{if($v.client==1)}电脑端{elseif($v.client==2)}手机H5版{/if}</td>
                    
                </tr>
               {/volist}
              </tbody>
            </table>
          </div>
      </div>
      <div class="dataTables_paginate paging_simple_numbers" style="width:100%;">
            <span style="float:right;margin-left:-2px;">总共{$q->lastPage()}页  当前第{$q->currentPage()}页 ，共{$q->total()}条</span>
            <div style="float:left;">{$q->render()}</div>
    </div>
    </div>
  </div>
    </div>

{/block}
{block name="js"}
 <script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript">
    $(function() {
  $('.skin-minimal input').iCheck({
    checkboxClass : 'icheckbox-blue',
    radioClass : 'iradio-blue',
    increaseArea : '20%'
  });
  $("#tab-system").Huitab({
    index : 0
  });
});
    function search(){
        var search = $('input[name="us_sql"]').val();
        var param = window.location.search;
        var find1 = param.indexOf("&");
        if( find1 > 0 ){
            param = param.substr(find1+1,param.length);
            var find2 = param.indexOf("search");
            if( find2 > 0 ){
                var find3 = param.indexOf("&",find2+1);
                if( find3 < 0 ){
                     find3 = param.length;
                }
                param = param.substr(0,find2-1) + param.substr(find3,param.length);
            }
        }
        param += '&search='+search;
        window.location.href = '{:url('rbac/am_czrz')}?' + param;
    }
</script>

{/block}




